﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

namespace HZ.DrugTrade.Web.Enterprise.RelationQuery
{
    public partial class CheckReason : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (Request.QueryString["areaId"]!=null)
                {
                    string areaId = Request.QueryString["areaId"].ToString();
                    string userId = CurrentAccount.GetUser().UserID;
                    this.lblReason.Text = HZ.DrugTrade.BLLFactory.Factory.BLL_Company().GetReason(userId,areaId);
                }
                else
                {
                    this.Controls.Add(new LiteralControl("<script>alert('参数错误');window.close();</script>"));
                }
            }
        }
    }
}
